package com.tim.android.widget.listview;

import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.widget.ExpandableListView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class GroupView extends LinearLayout {

	private Context mContext;
	public TextView groupTitle;
	
	public GroupView(Context context) {
		super(context);
		this.mContext = context;
		initComponent();
	}
	
	private void initComponent() {
		setLayoutParams(new ExpandableListView.LayoutParams(LayoutParams.FILL_PARENT, 100));
		setBackgroundColor(Color.CYAN);
		groupTitle = new TextView(mContext);
		groupTitle.setTextColor(Color.BLACK);
		groupTitle.setTypeface(null, Typeface.BOLD);
		groupTitle.setTextAppearance(mContext, android.R.style.TextAppearance_Large);
		addView(groupTitle);
	}
}